package com.towker.core.util;

import java.util.ArrayList;
import java.util.List;

public class EscapeUtil
{
	public static Object escapeXml(Object xml)
	{
		List<String> list=new ArrayList<String>();
		list.add("\'");
		list.add("\r");
		list.add("\n");
		list.add("\0");
		list.add("\\");
		list.add("\"");
		for(String tmp:list)
		{
			if(xml.toString().contains(tmp))
			{
				xml=xml.toString().replace(tmp, "");
			}
		}
		return xml;
	}
	
	public static void main(String[] args)
	{
		System.out.println("\\".contains("\\"));
		System.out.println("\\".replace("\\", ""));
	}
}
